package org.example.blog.utils;

public interface Constants {

    int DEFAULT_SIZE = 30;


    interface User {
        String ROLE_ADMIN = "role_admin";
        String ROLE_NORMAL = "role_normal";
        String DEFAULT_AVATAR = "https://cdn.sunofbeaches.com/images/default_avatar.png";
        String DEFAULT_STATE = "1";
        String KEY_CAPTCHA_CONTENT = "key_captcha_content_";
        String KEY_EMAIL_CODE_CONTENT = "key_email_code_content_";
        String kEY_EMAIL_SEND_IP = "key_email_send_ip_";
        String kEY_EMAIL_SEND_ADDRESS = "key_email_send_address";
        String KEY_TOKEN = "key_token_";
        String COOKIE_TOKEN_KEY = "blog_token_key";
    }

    interface Setting {
        String MANAGER_ACCOUNT_INIT_STATE = "manager_account_init_state";
    }

    interface Page {
        int DEFAULT_PAGE =  1;
        int MIN_SIZE = 10;
    }


    /**
     * 单位是秒
     * @param
     * @return
     */

    interface TimeValue {
        int MIN = 60;
        int HOUR = 60 * MIN;
        int HOUR_2 = 60 * MIN * 2;
        int DAY = 24 * HOUR;
        int WEEK = 7 * DAY;
        int MONTH = 30 * DAY;

    }

}
